package hanyuchao.service.impl;

import hanyuchao.dao.HanYuChaoDao;
import hanyuchao.pojo.HanYuChaoPojo;
import hanyuchao.service.HanYuChaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("hanYuChaoService")
public class HanYuChaoServiceimpl implements HanYuChaoService {
    @Autowired
    HanYuChaoDao hanyuchaoDao;
    @Override
    public List<HanYuChaoPojo> queryPage(String name) {
        return hanyuchaoDao.querypage(name);
    }

    @Override
    public void save(HanYuChaoPojo hanYuChaoPojo) {
        hanyuchaoDao.save(hanYuChaoPojo);
    }
}
